package com.scy.java.object.inter;

public class ElectricVehicle extends Vehicle
        implements IPower{
    @Override
    public void power() {
        System.out.println("电动车通过电力提供动力");
    }
    @Override
    public void run() {
        System.out.println("电动车通过电机驱动行驶");
    }



    public ElectricVehicle() {
    }

    public ElectricVehicle(String brand, String color) {
        super(brand, color);
    }
}
